Ext.define('Risk.view.RuLinePanle', {
    extend: 'Ext.form.Panel',
    alias: 'widget.ruline',
    layout:  {
        type: 'table',
        columns: 2
    },
    isLoad:false,
    width:520,
    disabled:true,
    buttonAlign:'center', 
    autoShow: true,
    url:'ru/addorupdate2.do',
    initComponent: function() {
      //初始化Window中的内容  pufieldSet
    	this.items = [
    	        {
    	        	width:680,
    	        	 margin:'5 10 5 5',
    	        	 height:240,
    	        	 xtype: 'alfieldSet',
    	        	 colspan:2
    			 },
    			 {
    	        	 margin:'5 10 5 5',
    	        	 height:240,
    	        	 xtype: 'pufieldSet',
    	        	 colspan:2
    			 },
    			 {
    				 width:680,
    				 margin:'5 10 5 5',
    	        	 height:100,
    	        	 xtype: 'rufieldset',
    	        	 colspan:2
    				 
    			 },
    			 {
    				 readOnly : true,
    				 xtype:'textfield',
    				 itemId:'nda',
            		 fieldLabel: '【NDa】',
            		 labelWidth:180,
            		 name:'nda',
            		 vtype:'number',
            		 style:'background:none; border-right: 0px solid;border-top: 0px solid;border-left: 0px solid;border-bottom: #000000 1px solid;',
     	        	fieldStyle:'background-color: #DDDDDD;color:red; background-image: none;'
    			 },
    			 {
    				 readOnly : true,
    				 xtype:'textfield',
    				 itemId:'nl',
    				 name:'nl',
            		 fieldLabel: '【NL】',
            		 labelWidth:180,
            		 vtype:'number',
            		 style:'background:none; border-right: 0px solid;border-top: 0px solid;border-left: 0px solid;border-bottom: #000000 1px solid;',
     	        	fieldStyle:'background-color: #DDDDDD;color:red; background-image: none;'
    			 },
    			 {
    				 readOnly : true,
    				 colspan:2,
    				 itemId:'rures',
    				 xtype:'textfield',
            		 fieldLabel: '雷击入户人畜伤害分量【Ru】',
            		 labelWidth:180,
            		 vtype:'number',
            		 name:'ruResult',
            		 style:'background:none; border-right: 0px solid;border-top: 0px solid;border-left: 0px solid;border-bottom: #000000 1px solid;',
     	        	 fieldStyle:'background-color: #DDDDDD;color:red; background-image: none;'
    			 }
        ];
    	this.buttons =[ 
	    	{
	    		text:'计算',
	    		action:'cau'
	    	},
	    	{
	    		text:'保存参数',
	    		action:'save'
	    	}
    	];
        this.callParent(arguments);
    }
    
});